/*
 * xxxx科技有限公司版权所有（）.
 * Copyright (c) 2019,  and/or its affiliates. All rights reserved.
 * @Date: 2020.08.03 09:30.
 * @Author
 * @Description  项目接口封装 - 根据请求类型封装，那个模块的通过url 判断
 **/
import request from '@/utils/request'

/**
 *@Description
 *@Param
 *@Return get 方式请求 方法.
 **/
export function getData(params, url) {
  return request({
    url,
    params,
    method: 'get'
  })
}

/**
 *@Description
 *@Param
 *@Return post 方式请求 方法.
 **/
export function postData(params, url) {
  return request({
    url,
    data: params,
    method: 'post'
  })
}
/**
 *@Description
 *@Param
 *@Return patch 方式请求 方法.
 **/
export function patchData(params, url) {
  return request({
    url,
    data: params,
    method: 'patch'
  })
}